package com.kaifa.org.tp02.example04;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
    public static void main(String[] args) {
        ApplicationContext applicationContext =new ClassPathXmlApplicationContext("applicationContext.xml");
        User4 user41=(User4)applicationContext.getBean("user4");
        User4 user42=(User4)applicationContext.getBean("user4");
        System.out.println(user41==user42);

        User4 user441=(User4)applicationContext.getBean("user44");
        User4 user442=(User4)applicationContext.getBean("user44");
        System.out.println(user441==user442);
    }
}
